//
//  NSDate+timer.m
//  乡易秀商户端
//
//  Created by delicious on 17/9/7.
//  Copyright © 2017年 chen. All rights reserved.
//

#import "NSDate+timer.h"

@implementation NSDate (timer)
+(NSString *)onGetInterval
{
    NSDate* dat = [NSDate dateWithTimeIntervalSinceNow:0];
    NSTimeInterval a=[dat timeIntervalSince1970];
    //转为字符型取整数部分
    NSString *senddate = [NSString stringWithFormat:@"%.0f", a];
    return senddate;
}
@end
